import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// import babel from 'vite-plugin-babel';
import { viteSingleFile } from "vite-plugin-singlefile"

// https://vite.dev/config/
export default defineConfig({
	build: {
		cssCodeSplit: false,
		assetsInlineLimit: 1024*1024*100
	},
  plugins: [
    react(),
	viteSingleFile()
    // babel({
    //   babelConfig: {
    //     plugins: [
    //       ['@babel/plugin-proposal-decorators', { legacy: true }],
    //       ['@babel/plugin-proposal-class-properties', { loose: true }],
    //     ],
    //   },
    // }),
  ],
});
